import { createRequest } from '/@/api/service';
const module = 'ib/parking/v1/ParkDashboardApi/';

/**
 * @function 查询停车库剩余车位数
 * @param data
 * @param header
 * @returns {Promise}
 */
function SPACE_COUNT_LIST_QUERY(
  data: ParkDashboardApi.SpaceCountListQueryReq,
  header: object = {},
): Promise<ParkDashboardApi.SpaceCountListQueryResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}querySpaceCountList`,
    data,
    header,
    'POST',
  );
}

export { SPACE_COUNT_LIST_QUERY };
